package com.ruoyi.project.service;

import java.util.concurrent.TimeUnit;

/**
 * @author asdtiang
 */
public interface DistributedLockService {

    boolean getLock(String key, long time, TimeUnit unit);

    void releaseLock(String key);
}
